
<!DOCTYPE html>


<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,minimal-ui" />
    <link href="http://www.qlcoder.com//uploads/145620041535888.png" type="image/x-icon" rel=icon>
    <title>我要建站-3
    </title>
    <!--
        <link rel="stylesheet" href="/css/edit/style.css">
        <link rel="stylesheet" href="/css/edit/editormd.css">
        <link rel="stylesheet" href="/css/highlight/styles/github.css">
    -->
    <link href="http://www.qlcoder.com//css/bootstrap.min.css" rel="stylesheet">
    <link href="http://www.qlcoder.com//css/bootstrap-theme.css" rel="stylesheet">
    <link href="http://www.qlcoder.com//css/jquery.mCustomScrollbar.css" rel="stylesheet">
    <link href="http://www.qlcoder.com//css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="/font/iconfont.css">
    <link rel="stylesheet" href="/css/task.css">


    <link rel="stylesheet" href="http://www.qlcoder.com//css/edit/editormd.css">
    <link rel="stylesheet" href="http://www.qlcoder.com//css/count_down.css">
    <link href="http://www.qlcoder.com//css/simplePagination.css" rel="stylesheet">
    <style>
        .dark-theme .ellipse{
            background: #555;
            background: -moz-linear-gradient(top, #555 0%, #333 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#555), color-stop(100%,#333));
            background: -webkit-linear-gradient(top, #555 0%,#333 100%);
            background: -o-linear-gradient(top, #555 0%,#333 100%);
            background: -ms-linear-gradient(top, #555 0%,#333 100%);
            background: linear-gradient(top, #555 0%,#333 100%);
        }
    </style>

    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?420590b976ac0a82d0b82a80985a3b8a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>
<nav class="nav">
    <!--<div style="width:8.33%;height: 50px;float: left;"></div>-->
    <div class="container-fluid"><!--fluid-->
        <div class="pull-left">
            <a class="" href="#" style="display: inline-block;"><img src="/img/ql_logo1.png"> </a>
        </div>
        <div class="pull-left nav-list">
            <ul class="">
                <li class=""><a href="http://www.qlcoder.com/home"><span color="gray" style="font-size:15px;">技能树</span></a></li>
                <li class=""><a href="http://www.qlcoder.com/u/792c/log"><span color="gray" style="font-size:15px;">跬步</span></a></li>
                <li class=""><a href="http://www.qlcoder.com/rank"><span color="gray" style="font-size:15px;">排行榜</span></a></li>
                <li class=""><a href="http://www.qlcoder.com/help"><span color="gray" style="font-size:15px;">帮助中心</span></a></li>
                <li class=""><a href="http://www.qlcoder.com/help#opinion"><span color="gray" style="font-size:15px;">意见反馈<span></span></span></a></li>
            </ul>

        </div>
        <div class="pull-right ">
            <ul class="avator pull-right">
                <li class="dropdown">
                    <a href="http://www.qlcoder.com/task/759f#" class="dropdown-toggle pull-left" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <img style="max-width:100px; margin-top: -20px;margin-bottom: -15px;margin-right: 10px;" src="/system/App/User/avatars/000/000/347/thumb/2000.gif" class="img-circle" alt="cinque terre" width="30" height="30">

                        <!--<span class="badge s_tip">4</span>-->
                        &nbsp;&nbsp;<span color="gray" style="font-size:15px;">端着木鱼敲代码&nbsp;</span><span class="caret"></span></a>
                    <!--<span class="badge s_tip">4</span>-->
                    <ul class="dropdown-menu ">
                        <li><a href="http://www.qlcoder.com/u/update" target="_blank"><i class="iconfont">&#xe603;</i>设置</a></li>

                        <li><a href="http://www.qlcoder.com/inbox" target="_blank"><i class="iconfont">&#xe607;</i>私信
                        </a></li>
                        <!--<li role="separator" class="divider"></li>-->
                        <li><a href="http://www.qlcoder.com/logout" target="_blank"><i class="iconfont">&#xe613;</i>退出</a></li>
                    </ul>
                </li>

            </ul>
        </div>
    </div>

</nav>



<!-- Page Content -->
<div class="contain">

    <div class="row">

        <!-- Blog Post Content Column -->
        <div class="col-lg-8" style="display: inline-block; width:60%;vertical-align:top;">

            <!-- Blog Post -->

            <!-- Title -->
            <h1>我要建站-3
                <small><small>11.62积分</small></small>

            </h1>
            <!-- Author -->

            <!--Date/Time
            <hr>
            <p><span class="glyphicon glyphicon-time"></span> Posted on August 24, 2013 at 9:00 PM</p>
            <hr>
-->
            <!-- Preview Image -->

            <hr>
            <!-- Post Content -->
            <p class="lead"><p>很多时候我们会需要持久化用户的数据,存储用户的数据有非常多的方式，比如文件系统，数据库（mysql等）,缓存（memcache，redis等）。</p>
            <p>请提供一个url（即在答案框内输入你制作的网页的url，网页字符编码请用UTF-8），这个url能接受1个名为registerusername的参数，代表一个用户注册了该网站。</p>
            <ul>
                <li>如果该用户名还未被使用，那么返回"register success"。</li>
                <li>否则返回 "already used"。</li>
            </ul>
            <p>用户访问url的形式举例: </p>
            <ul>
                <li><a target="_blank" href="http://121.201.63.168/train/register?registerusername=shinian">http://121.201.63.168/train/register?registerusername=shinian</a> (第一次访问，由于shinian没注册，返回 "register success")</li>
                <li><a target="_blank" href="http://121.201.63.168/train/register?registerusername=shinian">http://121.201.63.168/train/register?registerusername=shinian</a> (第二次访问，由于shinian已经注册了，返回 "already used")</li>
                <li><a target="_blank" href="http://121.201.63.168/train/register?registerusername=shinian">http://121.201.63.168/train/register?registerusername=jiaye</a> (第三次访问，由于jiaye没注册，返回 "register success")</li>
            </ul>
            <p>这里你提交的答案不需要带参数,只需提交: <a target="_blank" href="http://121.201.63.168/train/register">http://121.201.63.168/train/register</a> 即可</p></p>

            <hr name="comment" id="comment">

            <!-- Blog Comments -->
            <div class="well">                <!-- Comments Form -->
                <h4>答案:</h4>

                    <div class="form-group">
                        <input type="hidden" name="_token" value="WT6bRTGasvg1lAFhl9jXdLYUsGNQVaRdwlYMWvaX">
                        <input type="hidden" name="phref" value="/task/1/solve">
                        <textarea class="form-control" rows="1" name="answer"></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary">提交</button>
            </div>
            <hr>

            <!-- Posted Comments -->
            <div id="dc" name="dc">
            </div>
            <br>


        </div>

        <!-- Blog Sidebar Widgets Column -->
        <div class="col-md-4" style="display: inline-block;width:39%;float:none;">
            <!-- Blog Search Well -->
            <div class="well">
                <h4>
                    <img src="/system/App/User/avatars/000/000/055/thumb/neworeo.jpg" class="img-circle" alt="Cinque Terre" width="60" height="60">&nbsp&nbsp奥利奥
                </h4>

                <h5>
                    <img src="/uploads/144308906662811.png" class="img-circle" alt="Cinque Terre" width="20" height="20">&nbsp&nbsp千里码 程序员鼓励师
                </h5>
                <!-- /.input-group -->
                <h5>
                    <img src="/uploads/144085265365152.png" class="img-circle" alt="Cinque Terre" width="20" height="20">&nbsp&nbsp浙江省|杭州
                </h5>
                <!-- /.input-group -->
            </div>



            <!-- Side Widget Well -->
            <div class="well" >
                <h4>奥利奥说:</h4>
                <p>推荐大家使用mysql...这题是比较好的数据库的入门题。</p>
            </div>

            <!-- Side Widget Well -->
            <button type="button" class="btn btn-primary btn-lg"  onclick="window.open('/task/75cc/learn')">查看学习资料</button>
            <br>
            <div>
                &nbsp
            </div>


        </div>

    </div>
    <!-- /.row -->

</div>
<div class="task-shadow none"></div>
<div class="result-alert none">
    <div class="warning">
        <i class="iconfont">&#xe616;</i><!-- true:&#xe617;   flase:&#xe616;  -->
    </div>
    <p>恭喜你答错了!!!!哈哈哈哈</p>
    <p><a class="btn btn-primary result-close">确定</a></p>
</div>
<!-- /.container -->

<!-- jQuery -->

<!-- Bootstrap Core JavaScript -->
<!--
        <hr>

        <footer>
            <div class="row">
                <div class="col-lg-12">
                    <p>©2015 qlcoder.com | 联系我们:
                    oreo@qlcoder.com qq群480394714</p>
                </div>
            </div>
        </footer>
-->
<!-- Footer -->
<footer>
    <p>Copyright © 2015 qlcoder.com. All Rights Reserved. 浙ICP备15038807号-1. | 联系我们:oreo@qlcoder.com <a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=08dcd44232943b517c2ed04dceb097155575f604791c57bbd2f9759e90e22d58">qq群480394714</a></p>
</footer>
</body>
<script src="http://www.qlcoder.com//js/jquery.min.js"></script>
<script src="http://www.qlcoder.com//js/bootstrap.min.js"></script>

<script type="text/javascript">
    <!-- 点击回复出现评论框-->
    $(".modal-body img").click(function(){
        $("#myModal").modal('hide');
    })
    $(".reply").each(function(){
        $(this).click(function(){
            //$(".ql_comment_form").hide();
            $(this).parent().parent().parent().siblings().find(".ql_comment_form").hide();
            $(this).parent().siblings(".ql_comment_form").toggle();
        })
    })
    //    取消评论
    $(".ql_command_cancel").click(function(){
        $(this).parent().parent(".ql_comment_form").toggle();
    })
    //回复之后跳到 我回复的内容
    var dc=$("#dc");
    $(".replyBtn").click(function(){
        //$(".ql_comment_form").hidden();
        $(this).parent().parent(".ql_comment_form").toggle();
        var content=$(this).parent().prev().text();
        var replyname=$(this).parent().parent().prev().prev().prev().text();
        dc.prepend( '<div class="media">'+
                '<a class="pull-left" >'+
                '<img class="img-circle" alt="Cinque Terre" width="40" height="40" src="/system/App/User/avatars/000/000/347/thumb/2000.gif" alt="">'+
                '</a>'+
                '<div class="media-body">'+
                '<h4 class="media-heading">端着木鱼敲代码                <small>回复 </small> '+replyname+'</h4>'
                +	content+	'<div class="ql_comment_ft">'+
                '<span class="date">最近发布</span>'+
                '</div>'+
                '</div>'+
                '</div>'
        );
        $('html,body').animate({scrollTop:$("#comment").offset().top}, 800);
        var posting = $.post( "/task/59/comment", { reply:replyname,comment: content,_token:'WT6bRTGasvg1lAFhl9jXdLYUsGNQVaRdwlYMWvaX'});

        posting.done(function( data ) {
            // var div=document.getElementById("abc");
        });
    })
</script>

<script src="http://www.qlcoder.com//js/editormd.js?v=1.0"></script>
<script src="http://www.qlcoder.com//js/count_down.js"></script>
<script type="text/javascript">
    var testEditor;
    var _flag=false;
    $(function() {
        editormd.methodOne = function() {
        };

        testEditor = editormd("test-editormd", {
            width  : "90%",
            height : 720,
            path   : '/lib/',
            onload : function() {
            }
        });

        editormd.methodOne();
        $("#fenye").pagination({
            prevText:"上一页",
            nextText:"下一页",
            ulClass:"in clearfix",
            items: 0,//--总个数
            itemsOnPage: 20,//--个数
            currentPage:1,//-当前
            //hrefTextSuffix:"javascript:;",
            hrefText:"",
            onPageClick:function(pageNumber, event){
                console.log(pageNumber);
                $(".well .row").removeAttr("style");
                $(".well .row").slice(0,(pageNumber-1)*20).css({"height":"0","overflow":"hidden"});
            }
        });
        $("button[type='submit']").click(function(){
            var val=$(".form-control").val();
            var token=$("input[name='_token']").val();
            var _href=$("input[name='qhref']").val();
            $.post(_href,{answer:val,_token:token},function(data){
                if(data!=null||data!="undefined"||data!="")
                {
                    if(data.result==true)
                    {
                        $(".task-shadow").toggleClass("none");
                        $(".result-alert").toggleClass("none").children(".warning").find("i").html("&#xe617;");
                        $(".result-alert p").html(data.result);
                        _flag=true;
                    }
                    else{
                        $(".task-shadow").toggleClass("none");
                        $(".result-alert").toggleClass("none").children(".warning").find("i").html("&#xe616;");
                        $(".result-alert p").html(data.result);
                    }
                }
            })
        });
        $(".result-close").click(function(){
            if(_flag){
                window.location.reload();
            }
            else{
                $(".task-shadow").addClass("none");
            }
        })
    });
</script>
<script src="http://www.qlcoder.com//js/jquery.simplePagination.js"></script>
<script>
    if(document.getElementsByClassName("contain")[0]!=null)
        document.getElementsByClassName("contain")[0].style.minHeight=window.innerHeight-152+"px";
</script>
</html>


